package com.bw.usercenter.adapter

import com.bw.mvpcore.glideload.GlidImg
import com.bw.usercenter.R
import com.bw.usercenter.model.protocol.resp.HistoryBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MyHistoryMagAdapter(layoutResId: Int, data: MutableList<HistoryBean>?) :
    BaseQuickAdapter<HistoryBean, BaseViewHolder>(R.layout.item_history, data) {
    override fun convert(holder: BaseViewHolder, item: HistoryBean) {
        holder.setText(R.id.history_name,item.name)
        GlidImg.glidImg.getDrawableimg(context,holder.getView(R.id.history_delete),item.reomve)
    }
}